﻿[[title="问题汇总",pagesize="20",orderby="expectSolveTime desc",condition=""]]
<script language="javascript" type="text/javascript">
    function changeWindowSize() {
        wmsCommon.setListDivStyle("listDiv", 1);
    }
    $(function () {
        wmsCommon.setListDivStyle("listDiv", 1);
        projectQuestionAlerm();
        var conts = $(".subContent");
        if (conts) {
            for (var i = 0; i < conts.length; i++) {
                $(conts[i]).html(wmsBiz.subContent($(conts[i]).html(), 10));
            }
         }
      
    });


    //项目问题报警
    function projectQuestionAlerm() {

        for (var i = 0; i < $(".ifAlerm").length; i++) {
            if ($($(".ifAlerm")[i]).val() == 1) {
                $($(".ifAlerm")[i]).parent().parent().css("background-color", "#ffae31")
            }

        }

    }
</script>
<table class="listMainTable" height="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td style="height: 40px">
            <table cellspacing="0" cellpadding="0" class="tblSearchParent">
                <tr>
                    <td class="TblSearchPanel_01">
                    </td>
                    <td class="TblSearchPanel_02">
                        <div class="DivSearchTitle" style="float: left;">
                            查询条件</div>
                        <img alt="点此隐藏或显示搜索区域" id="Image2" src="res/images/display.gif" class="ImgSearch"
                            onclick="wmsCommon.searchContentCtr()" />
                    </td>
                    <td class="TblSearchPanel_03">
                    </td>
                </tr>
                <tr>
                    <td class="TblSearchPanel_04">
                    </td>
                    <td>
                        <!-- search content start -->
                        <table id="tblSearch" class="SearchTable">
                            <tr>
                                <td style="text-align: left; width: 100%;">
                                    <table style="width: auto;">
                                        <tr>
                                            <td class="tdright">
                                                <nobr>
                                                $projectSolution_list.Columns.get_Item("departWBS").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectSolution_list.Columns.get_Item("departWBS").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                                <nobr>
                                                $projectSolution_list.Columns.get_Item("projectName").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectSolution_list.Columns.get_Item("projectName").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                                <nobr>
                                                $projectSolution_list.Columns.get_Item("questionType").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectSolution_list.Columns.get_Item("questionType").RenderAsQuery()
                                            </td>
                                        </tr>

                                             <tr>
                                             <td class="tdright">
                                                <nobr>
                                                $projectSolution_list.Columns.get_Item("questionState").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectSolution_list.Columns.get_Item("questionState").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                                <nobr>
                                                 $projectSolution_list.Columns.get_Item("userNo").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectSolution_list.Columns.get_Item("userNo").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                                <nobr>
                                                $projectSolution_list.Columns.get_Item("needAttention").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectSolution_list.Columns.get_Item("needAttention").RenderAsQuery()
                                            </td>
                                        </tr>

                                  
                                    </table>
                                </td>
                                <td style="vertical-align: bottom;">
                                    <div>
                                        $render.RenderButton()
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <!-- search content end-->
                    </td>
                    <td class="TblSearchPanel_06">
                    </td>
                </tr>
                <tr>
                    <td class="TblSearchPanel_07">
                    </td>
                    <td class="TblSearchPanel_08">
                    </td>
                    <td class="TblSearchPanel_09">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <!--list content start-->
    <tr>
        <td style="vertical-align: text-top;" id="listTd" onresize="changeWindowSize()">
            <div id="listDiv" class="listDivStyle">
                <table id="contenttb" cellpadding="0" cellspacing="0" class="tblList">
                    <tr class="FixedTitleRow">
                        <th style="width: 20px">
                            $projectSolution_list.Columns.get_Item("ROWNUM").Render()
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("qusetionDes").Render()
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("needAttention").Render()
                        </th>
                        <th>
                            所属项目名称
                        </th>
                        <th>
                            所属部门
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("questionState").Render()
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("questionType").Render()
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("advise").Render()
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("userNo").Render()
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("expectSolveTime").Render()
                        </th>
                        <th>
                            $projectSolution_list.Columns.get_Item("upfileGuid").Render()
                        </th>
                    </tr>
                    #foreach($row in $projectSolution_list.Rows)
                    <tr keyvalue="$row.RenderKeyValue()">
                        <td style="width: 20px">
                            $row.get_Item("ROWNUM").Render()
                            <input type="hidden" value="$row.get_Item('ifAlerm')" class="ifAlerm" />
                        </td>
                        <td >
                            <nobr>
                              <a href="#" style="border: 0" title='$row.get_Item("qusetionDes")'  onclick="wmsCommon.openLookWin('repotGuid=$row.get_Item('repotGuid').Render()','projectQuestion','projectQuestion_View','','','&repotGuid=$row.get_Item('repotGuid').Render()')" class="subContent">
                               $row.get_Item("qusetionDes")</a></span>
                                </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                          $row.get_Item("ifNeedAttention").Render()
                              </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("projectName").Render()
                               </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("departName").Render()
                               </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("questionStateName").Render()
                               </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("questionTypeName").Render()
                               </nobr>
                        </td>
                        <td style="text-align: center; " >
                            <nobr>
                           <span class="subContent" title="$row.get_Item('advise')"> $row.get_Item("advise").Render()</span>
                              </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("userNo").Render()
                              </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("expectSolveTime").Render()
                              </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            <a href='javascript:void(0)'  onclick='wmsCommon.uploadFileView("$row.get_Item("upfileGuid")")' >
              相关文档
             </a>
                              </nobr>
                        </td>
                    </tr>
                    #end
                </table>
            </div>
        </td>
    </tr>
    <!-- list content end-->
    <tr>
        <td style="height: 20px; vertical-align: text-bottom">
            <div style="height: 20px; background-color: rgb(233, 231, 215); text-align: center;
                vertical-align: bottom">
                $render.RenderPaging($projectSolution_list)
            </div>
        </td>
    </tr>
</table>
